aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snaps...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-25 15:47:47 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-25 15:47:47 +0100
commit3c4abe6920253f63621a314890878b6037335a73 (patch)
tree20a1563f3a3cf37f129a14faa30d75d8a2d0ecee /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parentb44683eb40df4920e51d927088823d29d44faee6 (diff)
Add WASM code gen for push-unit instruction
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected24
1 files changed, 24 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..1ebd194b
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushUnitTests]/[method:pushIntIsCompiledToOperandInStack(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,24 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[1]:
+ - type[0] () -> nil
+Function[1]:
+ - func[0] sig=0 <f>
+Code[1]:
+ - func[0] size=4 <f>
+Custom:
+ - name: "name"
+ - func[0] <f>
+Custom:
+ - name: "linking"
+ - symbol table [count=1]
+ - 0: F <f> func=0 [ binding=global vis=default ]
+
+Code Disassembly:
+
+000026 func[0] <f>:
+ 000027: 41 00 | i32.const 0
+ 000029: 0b | end \ No newline at end of file